@extends('layouts.application')

@section('content')
    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">新增地址</strong> /
                    <small>Create A New Express</small>
                </div>
            </div>

            <hr>

            <form class="am-form" action="{{route('shop.express.store')}}" method="post">

                {{csrf_field()}}
                @include('layouts.shared._flash')

                <div class="am-g am-margin-top">
                    <div class="am-u-sm-4 am-u-md-2 am-text-right">快递名称</div>
                    <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                        <input type="text" name="name" class="am-input-sm">
                    </div>
                    <div class="am-hide-sm-only am-u-md-6">*必填，不可重复</div>
                </div>

                <div class="am-g am-margin-top">
                    <div class="am-u-sm-4 am-u-md-2 am-text-right">快递公司代码</div>
                    <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                        <input type="text" name="code" class="am-input-sm">
                    </div>
                    <div class="am-hide-sm-only am-u-md-6">*必填，不可重复
                        <a href="https://www.kuaidi100.com/frame/index.html" width="960" height="880"
                           marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" target="_blank">查看代码</a>
                    </div>
                </div>
                     
                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">网址</div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="url" class="am-input-sm">
                        </div>
                    </div>

                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">运费</div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="shipping_money" class="am-input-sm">
                        </div>
                    </div>

                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">满额包邮</div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="shipping_free" class="am-input-sm">
                        </div>
                    </div>

                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">配送方式描述</div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <textarea name="description" id="" cols="10" rows="5"></textarea>
                        </div>
                    </div>

                    <div class="am-g am-margin-top">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">是否可用</div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <div class="am-form-group">
                                <label class="am-radio-inline">
                                    <input type="radio" value="1" name="is_enable"> 是
                                </label>
                                <label class="am-radio-inline">
                                    <input type="radio" value="0" name="is_enable"> 否
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="am-g am-margin-top-sm">
                        <div class="am-u-sm-4 am-u-md-2 am-text-right">排序</div>
                        <div class="am-u-sm-8 am-u-md-4 am-u-end col-end">
                            <input type="text" name="sort_order">
                        </div>
                    </div>

                    <div class="am-margin am-u-lg-push-1">
                        <button type="submit" class="am-btn am-btn-primary am-btn-xs">提交保存</button>
                        <a href="{{Route('shop.express.index')}}" class="am-btn am-btn-primary am-btn-xs">放弃保存</a>
                    </div>
            </form>

        </div>

    </div>
@endsection

